<?php
/**
 * Description tab
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     2.0.0
 */

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

global $woocommerce, $post;

$heading = esc_html( apply_filters('woocommerce_product_description_heading', __( 'Product Description', 'woocommerce' ) ) );
?>

<?php if (has_term(array('Solar Hot Water Installation Training'), 'product_cat')) { ?>

	<div style="padding:20px;background:#f2f2f2;float:right;margin:0px;margin-left:30px;">

	<h2>Course Details</h2>
	<style>
		.trainingdets td { height:30px;line-height:30px;border-bottom:#f2f2f2 1px solid;text-align:right;padding-right:10px; }
		.trainingdets th { height:30px;line-height:30px;border-bottom:#f2f2f2 1px solid;padding-left:10px; }
	</style>
	<table style="width:300px;background:#ffffff;margin-bottom:0px;" class="trainingdets">
		<tr>
			<th style="font-size:15px;color:#e77d1d;text-align:left;">Month</th>
			<td><?php the_field('training_month'); ?></td>
		</tr>
		<tr>
			<th style="font-size:15px;color:#e77d1d;text-align:left;">Dates</th>
			<td><?php the_field('training_dates'); ?></td>
		</tr>
		<tr>
			<th style="font-size:15px;color:#e77d1d;text-align:left;">Location</th>
			<td><?php the_field('training_location'); ?></td>
		</tr>
		<tr>
			<th style="font-size:15px;color:#e77d1d;text-align:left;">Levels</th>
			<td><?php the_field('training_levels'); ?></td>
		</tr>
		<tr>
			<th style="font-size:15px;color:#e77d1d;text-align:left;">Instructor</th>
			<td><?php the_field('training_instructor'); ?></td>
		</tr>
	</table>

	</div>

	<div style="width:630px;float:left;margin:0px;">
		
		<div style="width:630px;float:left;margin:0px;margin-bottom:20px;">
			<img src="http://www.sunmaxxsolar.com/wp-content/uploads/2013/07/level-1-solar-thermal-training.jpg" alt="Level 1 Solar Thermal Training" style="width:150px;float:left;margin:0px;margin-right:20px;" />
			<h3 style="font-size:15px;color:#e77d1d;clear:none;margin-bottom:10px;">Level 1: Intro To Solar Thermal Systems</h3>
			<p>Let SunMaxx Solar give you a leg up over the competition, and prepare you for your hands-on training with our introduction to solar thermal systems and installation. In this workshop, you will get the basics you need to move forward as a professional solar thermal installer.</p>
			<div style="width:100%;height:0px;clear:both;"></div>
		</div>
		<div style="width:630px;float:left;margin:0px;margin-bottom:20px;">
			<img src="http://www.sunmaxxsolar.com/wp-content/uploads/2013/07/level-2-solar-thermal-training.jpg" alt="Level 2-3 Solar Thermal Training" style="width:150px;float:left;margin:0px;margin-right:20px;" />
			<h3 style="font-size:15px;color:#e77d1d;clear:none;margin-bottom:10px;">Level 2 &amp; 3: Hands-On Installations</h3>
			<p>A completely hands-on course in solar domestic hot water system sizing, design and installation. Put your new-found solar thermal knowledge to good use assembling and installing SunMaxx Solar's industry-leading solar thermal collectors and systems.</p>
			<div style="width:100%;height:0px;clear:both;"></div>
		</div>

		<?php  if(get_field('training_levels') == '1 - 5') { // LEVELS 1-3 DESCRIPTIONS ?>
			<div style="width:630px;float:left;margin:0px;margin-bottom:20px;">
				<img src="http://www.sunmaxxsolar.com/wp-content/uploads/2013/07/level-4-solar-thermal-training.jpg" alt="Level 4 Solar Thermal Training" style="width:150px;float:left;margin:0px;margin-right:20px;" />
				<h3 style="font-size:15px;color:#e77d1d;clear:none;margin-bottom:10px;">Level 4: Solar Thermal Sales &amp; Marketing</h3>
				<p>The heart of your solar business is the ability to go out and get lot of new clients. Let SunMaxx Solar's sales and marketing experts walk you through today's cutting-edge, high-impact sales and marketing tools, strategies and secrets, applied directly to the solar market!</p>
				<div style="width:100%;height:0px;clear:both;"></div>
			</div>
			<div style="width:630px;float:left;margin:0px;margin-bottom:20px;">
				<img src="http://www.sunmaxxsolar.com/wp-content/uploads/2013/07/level-5-solar-thermal-training.jpg" alt="Level 5 Solar Thermal Training" style="width:150px;float:left;margin:0px;margin-right:20px;" />
				<h3 style="font-size:15px;color:#e77d1d;clear:none;margin-bottom:10px;">Level 5: Commercial Solar Thermal Sales</h3>
				<p>Get ready to tackle the industry's biggest, most lucrative projects. Our Commercial Solar Thermal Sales workshop will train you in the process, tools and strategies for attracting and selling small and large commercial solar thermal customers in your market.</p>
				<div style="width:100%;height:0px;clear:both;"></div>
			</div>
		<?php } ?>
		
	</div>

<?php } elseif (has_term(array('Cold Climate Residential Solar Hot Water Kits', 'Warm Climate Residential Solar Hot Water Kits', 'Solar Domestic Hot Water Kits', 'Solar Residential Hot Water Systems'), 'product_cat')) { ?>
	<?php include '/home/sunmaxxs/public_html/wp-content/themes/SunMaxxSolar/page-include-ressizingform.php'; ?>
<?php } else { ?>

<h2><?php echo $heading; ?></h2>

<?php } ?>

<?php the_content(); ?>